<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<html>
<head>
<title>Home</title>
</head>
<body>
	<h1>Hello world!</h1>

	<table style="align: center;">
		<th>Id</th>
		<th>Title</th>
		<th>Content</th>
		<th>Create Date</th>
		<c:forEach items="${listPost}" var="p">
			<tr>
				<td><c:out value="${p.id}" /></td>
				<td><c:out value="${p.title}" /></td>
				<td><c:out value="${p.content}" /></td>
				<td><c:out value="${p.createDate}" /></td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>
